package com.zh.elec.service.impl;

import java.util.List;

import com.zh.elec.dao.SellRecordDao;
import com.zh.elec.model.SellRecord;
import com.zh.elec.service.SellRecordService;

/**
 * 销售表
 * @author scy
 *
 */
public class SellRecordServiceImpl implements SellRecordService {

	private SellRecordDao sellRecordDao;
	@Override
	public Object save(SellRecord obj) {
		return sellRecordDao.save(obj);
	}

	@Override
	public Object update(SellRecord obj) {
		return sellRecordDao.update(obj);
	}

	@Override
	public Object getObjById(SellRecord obj) {
		return sellRecordDao.getObjById(obj);
	}

	@Override
	public Object del(SellRecord obj) {
		return sellRecordDao.del(obj);
	}

	@Override
	public List<SellRecord> find(String hql) {
		return sellRecordDao.findByHql(hql);
	}

	@Override
	public List<SellRecord> findByName(String name, Object value) {
		return sellRecordDao.findByName(name, value);
	}
	@Override
	public List<SellRecord> findAll() {
		return sellRecordDao.findAll();
	}
	public SellRecordDao getSellRecordDao() {
		return sellRecordDao;
	}

	public void setSellRecordDao(SellRecordDao sellRecordDao) {
		this.sellRecordDao = sellRecordDao;
	}
}
